<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
	<head>
		<title>搜索页</title>
	</head>
	<body>
		
		<c:choose>
			<c:when test="${results eq null}">
				<div style="border:1px solid red;background-color:#FFC040;color: blue;font-size: 12px;">
					<c:out value="无记录"/>
				</div>
			</c:when>
			<c:otherwise>
				 耗时：${results.searchTime }&nbsp;ms&nbsp;共搜到${results.totalResults}条结果
				<c:forEach items="${results.resultDatas}" var="result">
					<div style="border:1px solid red;background-color:#FFC040;color: blue;font-size: 12px;">
						<c:out value="${result.resultContent}" escapeXml="false"></c:out>
					</div>
				</c:forEach>
			</c:otherwise>
		</c:choose>
	</body>
</html>